package ${model.packageName}.api.bean.request;

import ${model.packageName}.enums.${model.initUpperName}OperationType;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.terminus.api.consts.OperationType;
import io.terminus.api.request.AbstractPageRequest;
import io.terminus.api.request.AbstractRequest;
import io.terminus.api.utils.ParamUtil;

import lombok.Data;

@Data
@ApiModel(value = "${model.initUpperName}PageRequest", description = "${model.desc}分页查询请求", parent = AbstractRequest.class)
public class ${model.initUpperName}PageRequest extends AbstractPageRequest {
	
	<#list model.fields as field>
	@ApiModelProperty(value = "${field.desc}")
	private String ${field.name};
	</#list>

	public void checkParam() {
		super.checkParam();
	}

	public OperationType getOperationType() {
		return ${model.initUpperName}OperationType.${model.dbName?upper_case}_PAGE;
	}
}